// @APIVersion 1.0.1
// @Title mobile API
// @Description mobile has every tool to get any job done, so codename for the new mobile APIs.
// @Contact astaxie@gmail.com
package routers

import (
	"shopping/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/showcart", &controllers.ShowController{}, "get:Showcart")

	beego.Router("/additem", &controllers.ShowController{}, "post:Additem")

	beego.Router("/addmin", &controllers.ShowController{}, "post:Addmin")

	beego.Router("/deleteitem", &controllers.ShowController{}, "post:Deleteitem")

	beego.Router("/order", &controllers.ShowController{}, "post:Getorder")

	beego.Router("/query", &controllers.ShowController{}, "get:Query")

	beego.Router("/save", &controllers.OrderController{}, "*:SaveOrder")

	beego.Router("/save2", &controllers.OrderController{}, "*:SaveOrder2")
}
